﻿using Microsoft.EntityFrameworkCore;

namespace project1.Models
{
    public class OrderDbcontext : DbContext
    {
        public OrderDbcontext(DbContextOptions<OrderDbcontext> options):base(options) {
        
            this.Database.EnsureCreated();
        }

        public DbSet<Order> Orders { get; set;}
        public DbSet<Goods> Goods { get; set;}

        public DbSet<Customer> Customers { get; set;}

        public DbSet<OrderDetail> OrderDetails { get; set;}




    }
}
